<template>
</template>
<script>
	export default {
		data() {
			return {
			}
		},
		onLoad(options){
			// #ifdef MP-WEIXIN
				wx.chooseContact({
					success:(res)=>{
						
						this.$u.api.submitCommunication({
							
							phone:res.phoneNumber,
						}).then(res=>{
							if(res.code == 200){
								//活动的h5
								uni.redirectTo({
								   url:"/pages/webview/index?url=https://api.cd1a.cn/h5/libo/phone/housailei.html"
								});
							}else{
								this.$utils.modal({
									content:res.msg,
									showCancel:false,
									callback:(bool)=>{
										this.$utils.back();
									}
								});
							};
						}).catch(err=>{})
						
					},
					fail:()=>{
						this.$utils.back();
					}
				})
			// #endif
			
		},
		methods:{
			
		},
	}
</script>